//
//  NavigationView.h
//  news
//
//  Created by 李松 on 2017/3/21.
//  Copyright © 2017年 benxiaohai. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^itemClick)(NSInteger selectedIndex);

@interface NavigationView : UIScrollView

@property (nonatomic, assign) NSInteger selectedItemIndex;

@property (nonatomic, strong) NSArray<NSString *> *items;

+ (instancetype)navigationViewWithItems:(NSArray<NSString*>*)items itemClick:(itemClick)itemClick;

@end
